import java.rmi.Remote;
import java.rmi.RemoteException;

/**
 * @author Alan Kaminsky
 * @source P2Pedia example
 * 
 * @contributor Praneeth Pulusani
 * Interface ReceiverRef specifies the Java RMI remote interface for a distributed
 * Receiver object in the Message Queuing system.
 */
public interface ReceiverRef
	extends Remote
	{
	/**
	 * Print the message the receiver receives and where it came from
	 * 
	 * @param senderID - ID of the sender,
	 * @param Message - Message that the sender sent
	 * 
	 * @exception RemoteException
	 *                Thrown if a remote error occurred.
	 */
	public void loadMessage
		(int senderID, String message)
		throws RemoteException;

	/**
	 * 
	 * @return id of the receiver
	 * @throws RemoteException
	 */
	public int getID()throws RemoteException;

	}
